package com.hdoit.apollo.logical.stock.dao.impl;

import org.springframework.stereotype.Component;

import com.hdoit.apollo.logical.stock.dao.IOutStockShowDao;
import com.hdoit.apollo.logical.stock.model.OutStockShow;
import com.tennetcn.data.dao.base.ISqlExpression;
import com.tennetcn.data.dao.base.impl.SuperDao;
import com.tennetcn.data.utils.SqlExpressionFactory;
/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年04月02日 12:02:54
 * @comment
 */
@Component
public class OutStockShowDaoImpl extends SuperDao<OutStockShow> implements IOutStockShowDao{

	@Override
	public boolean deleteOutStockShow(String outStockId) {
		ISqlExpression sqlExpression = SqlExpressionFactory.createExpression();
		sqlExpression.addBody("delete from",OutStockShow.class)
					.andWhere("outStockId=#{outStockId}")
					.setParam("outStockId", outStockId);
		return delete(sqlExpression)>=0;
	}

}